package io.file;

import com.google.common.io.CharSource;
import com.google.common.io.Resources;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
import java.nio.charset.StandardCharsets;
import org.testng.annotations.Test;

public class ResourceGet {

    @Test
    private void t2() {
        String s = "1\n2";
        String s2 = "1\\n2";
        String s3 = "1\\\n2";
        System.out.println(s);
        System.out.println("-----");
        System.out.println(s2);
        System.out.println("--------");
        System.out.println(s3);
    }

    @Test
    private void t1() {

//        var input = "10002_8202,1,1,1\n10003_8201,1,0,2";
//
       CharSource source = Resources.asCharSource(Resources.getResource("LBData.txt"), StandardCharsets.UTF_8);


        String s = "1\n2";
        String s2 = "1\\n2";
        String s3 = "1\\\n2";
        System.out.println(s);
        System.out.println(s2);
        System.out.println(s3);

    }
}

